﻿using System;

namespace NetCoreCMS.Models
{
    /// <summary>
    /// 用户随机码表
    /// </summary>    
    public partial class User_code : BaseModel
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int user_id { get; set; } = 0;
        /// <summary>
        /// 用户名
        /// </summary>
        public string user_name { get; set; }
        /// <summary>
        /// 生成码类别 password取回密码,register邀请注册
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 生成的字符串
        /// </summary>
        public string str_code { get; set; }
        /// <summary>
        /// 使用次数
        /// </summary>
        public int count { get; set; } = 0;
        /// <summary>
        /// 状态0未使用1已使用
        /// </summary>
        public int status { get; set; } = 0;
        /// <summary>
        /// 用户IP
        /// </summary>
        public string user_ip { get; set; }
        /// <summary>
        /// 有效时间
        /// </summary>
        public DateTime eff_time { get; set; } = DateTime.Now;
    }
}